Optimal. Leaf size=237 \[ \frac {\tan ^{-1}(a x)^4}{32 a^3 c^3}-\frac {3 \tan ^{-1}(a x)^2}{128 a^3 c^3}+\frac {x \tan ^{-1}(a x)^3}{8 a^2 c^3 \left (a^2 x^2+1\right )}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (a^2 x^2+1\right )^2}-\frac {3 x \tan ^{-1}(a x)}{64 a^2 c^3 \left (a^2 x^2+1\right )}+\frac {3 x \tan ^{-1}(a x)}{32 a^2 c^3 \left (a^2 x^2+1\right )^2}-\frac {3}{128 a^3 c^3 \left (a^2 x^2+1\right )}+\frac {3}{128 a^3 c^3 \left (a^2 x^2+1\right )^2}+\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (a^2 x^2+1\right )}-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (a^2 x^2+1\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.39, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {4964, 4892, 4930, 261, 4900, 4896} \[ -\frac {3}{128 a^3 c^3 \left (a^2 x^2+1\right )}+\frac {3}{128 a^3 c^3 \left (a^2 x^2+1\right )^2}+\frac {x \tan ^{-1}(a x)^3}{8 a^2 c^3 \left (a^2 x^2+1\right )}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (a^2 x^2+1\right )^2}+\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (a^2 x^2+1\right )}-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (a^2 x^2+1\right )^2}-\frac {3 x \tan ^{-1}(a x)}{64 a^2 c^3 \left (a^2 x^2+1\right )}+\frac {3 x \tan ^{-1}(a x)}{32 a^2 c^3 \left (a^2 x^2+1\right )^2}+\frac {\tan ^{-1}(a x)^4}{32 a^3 c^3}-\frac {3 \tan ^{-1}(a x)^2}{128 a^3 c^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 261
Rule 4892
Rule 4896
Rule 4900
Rule 4930
Rule 4964
Rubi steps
\begin {align*} \int \frac {x^2 \tan ^{-1}(a x)^3}{\left (c+a^2 c x^2\right )^3} \, dx &=-\frac {\int \frac {\tan ^{-1}(a x)^3}{\left (c+a^2 c x^2\right )^3} \, dx}{a^2}+\frac {\int \frac {\tan ^{-1}(a x)^3}{\left (c+a^2 c x^2\right )^2} \, dx}{a^2 c}\\ &=-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )^2}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (1+a^2 x^2\right )^2}+\frac {x \tan ^{-1}(a x)^3}{2 a^2 c^3 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^4}{8 a^3 c^3}+\frac {3 \int \frac {\tan ^{-1}(a x)}{\left (c+a^2 c x^2\right )^3} \, dx}{8 a^2}-\frac {3 \int \frac {\tan ^{-1}(a x)^3}{\left (c+a^2 c x^2\right )^2} \, dx}{4 a^2 c}-\frac {3 \int \frac {x \tan ^{-1}(a x)^2}{\left (c+a^2 c x^2\right )^2} \, dx}{2 a c}\\ &=\frac {3}{128 a^3 c^3 \left (1+a^2 x^2\right )^2}+\frac {3 x \tan ^{-1}(a x)}{32 a^2 c^3 \left (1+a^2 x^2\right )^2}-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )^2}+\frac {3 \tan ^{-1}(a x)^2}{4 a^3 c^3 \left (1+a^2 x^2\right )}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (1+a^2 x^2\right )^2}+\frac {x \tan ^{-1}(a x)^3}{8 a^2 c^3 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^4}{32 a^3 c^3}+\frac {9 \int \frac {\tan ^{-1}(a x)}{\left (c+a^2 c x^2\right )^2} \, dx}{32 a^2 c}-\frac {3 \int \frac {\tan ^{-1}(a x)}{\left (c+a^2 c x^2\right )^2} \, dx}{2 a^2 c}+\frac {9 \int \frac {x \tan ^{-1}(a x)^2}{\left (c+a^2 c x^2\right )^2} \, dx}{8 a c}\\ &=\frac {3}{128 a^3 c^3 \left (1+a^2 x^2\right )^2}+\frac {3 x \tan ^{-1}(a x)}{32 a^2 c^3 \left (1+a^2 x^2\right )^2}-\frac {39 x \tan ^{-1}(a x)}{64 a^2 c^3 \left (1+a^2 x^2\right )}-\frac {39 \tan ^{-1}(a x)^2}{128 a^3 c^3}-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )^2}+\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (1+a^2 x^2\right )^2}+\frac {x \tan ^{-1}(a x)^3}{8 a^2 c^3 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^4}{32 a^3 c^3}+\frac {9 \int \frac {\tan ^{-1}(a x)}{\left (c+a^2 c x^2\right )^2} \, dx}{8 a^2 c}-\frac {9 \int \frac {x}{\left (c+a^2 c x^2\right )^2} \, dx}{64 a c}+\frac {3 \int \frac {x}{\left (c+a^2 c x^2\right )^2} \, dx}{4 a c}\\ &=\frac {3}{128 a^3 c^3 \left (1+a^2 x^2\right )^2}-\frac {39}{128 a^3 c^3 \left (1+a^2 x^2\right )}+\frac {3 x \tan ^{-1}(a x)}{32 a^2 c^3 \left (1+a^2 x^2\right )^2}-\frac {3 x \tan ^{-1}(a x)}{64 a^2 c^3 \left (1+a^2 x^2\right )}-\frac {3 \tan ^{-1}(a x)^2}{128 a^3 c^3}-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )^2}+\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (1+a^2 x^2\right )^2}+\frac {x \tan ^{-1}(a x)^3}{8 a^2 c^3 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^4}{32 a^3 c^3}-\frac {9 \int \frac {x}{\left (c+a^2 c x^2\right )^2} \, dx}{16 a c}\\ &=\frac {3}{128 a^3 c^3 \left (1+a^2 x^2\right )^2}-\frac {3}{128 a^3 c^3 \left (1+a^2 x^2\right )}+\frac {3 x \tan ^{-1}(a x)}{32 a^2 c^3 \left (1+a^2 x^2\right )^2}-\frac {3 x \tan ^{-1}(a x)}{64 a^2 c^3 \left (1+a^2 x^2\right )}-\frac {3 \tan ^{-1}(a x)^2}{128 a^3 c^3}-\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )^2}+\frac {3 \tan ^{-1}(a x)^2}{16 a^3 c^3 \left (1+a^2 x^2\right )}-\frac {x \tan ^{-1}(a x)^3}{4 a^2 c^3 \left (1+a^2 x^2\right )^2}+\frac {x \tan ^{-1}(a x)^3}{8 a^2 c^3 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^4}{32 a^3 c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 111, normalized size = 0.47 \[ \frac {\left (6 a x-6 a^3 x^3\right ) \tan ^{-1}(a x)-3 a^2 x^2+4 \left (a^2 x^2+1\right )^2 \tan ^{-1}(a x)^4+16 a x \left (a^2 x^2-1\right ) \tan ^{-1}(a x)^3-3 \left (a^4 x^4-6 a^2 x^2+1\right ) \tan ^{-1}(a x)^2}{128 a^3 c^3 \left (a^2 x^2+1\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 130, normalized size = 0.55 \[ \frac {4 \, {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{4} - 3 \, a^{2} x^{2} + 16 \, {\left (a^{3} x^{3} - a x\right )} \arctan \left (a x\right )^{3} - 3 \, {\left (a^{4} x^{4} - 6 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{2} - 6 \, {\left (a^{3} x^{3} - a x\right )} \arctan \left (a x\right )}{128 \, {\left (a^{7} c^{3} x^{4} + 2 \, a^{5} c^{3} x^{2} + a^{3} c^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 216, normalized size = 0.91 \[ \frac {\arctan \left (a x \right )^{3} x^{3}}{8 c^{3} \left (a^{2} x^{2}+1\right )^{2}}-\frac {x \arctan \left (a x \right )^{3}}{8 a^{2} c^{3} \left (a^{2} x^{2}+1\right )^{2}}+\frac {\arctan \left (a x \right )^{4}}{32 a^{3} c^{3}}+\frac {3 \arctan \left (a x \right )^{2}}{16 a^{3} c^{3} \left (a^{2} x^{2}+1\right )}-\frac {3 \arctan \left (a x \right )^{2}}{16 a^{3} c^{3} \left (a^{2} x^{2}+1\right )^{2}}-\frac {3 \arctan \left (a x \right ) x^{3}}{64 c^{3} \left (a^{2} x^{2}+1\right )^{2}}+\frac {3 x \arctan \left (a x \right )}{64 a^{2} c^{3} \left (a^{2} x^{2}+1\right )^{2}}-\frac {3 \arctan \left (a x \right )^{2}}{128 a^{3} c^{3}}-\frac {3}{128 a^{3} c^{3} \left (a^{2} x^{2}+1\right )}+\frac {3}{128 a^{3} c^{3} \left (a^{2} x^{2}+1\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.52, size = 334, normalized size = 1.41 \[ \frac {1}{8} \, {\left (\frac {a^{2} x^{3} - x}{a^{6} c^{3} x^{4} + 2 \, a^{4} c^{3} x^{2} + a^{2} c^{3}} + \frac {\arctan \left (a x\right )}{a^{3} c^{3}}\right )} \arctan \left (a x\right )^{3} + \frac {3 \, {\left (a^{2} x^{2} - {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{2}\right )} a \arctan \left (a x\right )^{2}}{16 \, {\left (a^{8} c^{3} x^{4} + 2 \, a^{6} c^{3} x^{2} + a^{4} c^{3}\right )}} - \frac {1}{128} \, {\left (\frac {{\left (4 \, {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{4} + 3 \, a^{2} x^{2} - 3 \, {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{2}\right )} a^{2}}{a^{10} c^{3} x^{4} + 2 \, a^{8} c^{3} x^{2} + a^{6} c^{3}} + \frac {2 \, {\left (3 \, a^{3} x^{3} - 8 \, {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{3} - 3 \, a x + 3 \, {\left (a^{4} x^{4} + 2 \, a^{2} x^{2} + 1\right )} \arctan \left (a x\right )\right )} a \arctan \left (a x\right )}{a^{9} c^{3} x^{4} + 2 \, a^{7} c^{3} x^{2} + a^{5} c^{3}}\right )} a \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.54, size = 188, normalized size = 0.79 \[ \frac {\mathrm {atan}\left (a\,x\right )\,\left (\frac {3\,x}{64\,a^4\,c^3}-\frac {3\,x^3}{64\,a^2\,c^3}\right )}{\frac {1}{a^2}+2\,x^2+a^2\,x^4}-\frac {3\,x^2}{2\,\left (64\,a^5\,c^3\,x^4+128\,a^3\,c^3\,x^2+64\,a\,c^3\right )}-{\mathrm {atan}\left (a\,x\right )}^2\,\left (\frac {3}{128\,a^3\,c^3}-\frac {3\,x^2}{16\,a^3\,c^3\,\left (\frac {1}{a^2}+2\,x^2+a^2\,x^4\right )}\right )-\frac {{\mathrm {atan}\left (a\,x\right )}^3\,\left (\frac {x}{8\,a^4\,c^3}-\frac {x^3}{8\,a^2\,c^3}\right )}{\frac {1}{a^2}+2\,x^2+a^2\,x^4}+\frac {{\mathrm {atan}\left (a\,x\right )}^4}{32\,a^3\,c^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {x^{2} \operatorname {atan}^{3}{\left (a x \right )}}{a^{6} x^{6} + 3 a^{4} x^{4} + 3 a^{2} x^{2} + 1}\, dx}{c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________